<?php $this->load->view(TEMPLATE_NAME.'/front/header');?>
<?php $this->load->view(TEMPLATE_NAME.'/admin/side_left');?>
<script type="text/javascript" src="<?php echo base_url()?>js/jquery.validate.pack.js"></script>
<div class="page noright adminpage adminuser">
    
    <?php $this->load->view(TEMPLATE_NAME.'/admin/profile/profile_tabs');?>
<h2 class="no">Leave network (<?php echo $network_detail['name'] ?>)</h2>
            
            <p class="black f13"><strong>leave this network - you can apply to this network again later...</strong></p>
            
<?php if($manager_status == TRUE){ ?>
            <p class="black f13"><strong>Please note that you are manager of this network</strong></p>
<?php } ?>
            <hr />
            
        <?php echo form_open_multipart('admin/profile/leave_network/'.$network_detail['id'],array('method' => 'post', 'class' => 'formstep formp', 'id' => 'login_details'));?><br />	
<p>
<?php if($last_manager == TRUE){ ?>
	<strong>as you are the last manager of network <?php echo $network_detail['name'] ?> you can't leave this network .</strong>
<?php }else{ ?>
	<?php echo form_checkbox('confirm_leave','leave'); ?> <strong>Yes, I want to leave this network (<?php echo $network_detail['name'] ?>) .</strong>
<?php } ?>
</p>
<?php echo form_error('confirm_leave','<p  class="alert"><strong>Error:</strong>','</p>') ?>

                <hr />
             <?php 
            $form_button = array(
              'type'=>'submit',
              'name'=>'submit',
              'value'=>'submit',
              'content'=>'Submit',
            );

	if($last_manager == FALSE){ 
		echo form_button($form_button);
	}?>
                <div class="clear"></div>
      <?php echo form_close();?>
<?php $this->load->view(TEMPLATE_NAME.'/front/footer_menu');?>
</div><!-- page -->


<?php $this->load->view(TEMPLATE_NAME.'/front/footer');?>
